<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel=stylesheet href="css/style.css" type="text/css">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic-el" prefix="logic" %>
<title>Fantacalcio | Ricerca Giocatore</title>
</head>
<body>
	<c:if test="${userInSession == null }">
		<c:redirect url="Logout.do"></c:redirect>
	</c:if>
		
	<c:import url="/head.jsp"/>
	
	<c:import url="/menu.jsp"/>
	
	<c:import url="menuGiocatore.jsp"/>
	
	<div class="context">
		<h1> Ricerca Giocatore </h1>
		<form action="PrepareListGiocatoreAction.do" method="post">
			<table>
				<tr>
					<td><label class="prop">Cognome:</label></td>
					<td><input type="text" name="cognome"/></td>
				</tr>
				<tr>
					<td><label class="prop">Valore:</label></td>
					<td>
						<select name="rangeValore">
							<option value="0">--seleziona un range--</option>
							<option value="1">&lt; 20</option>
							<option value="2">21 - 40</option>
							<option value="3">41 - 60</option>
							<option value="4">61 - 80</option>
							<option value="5">81 - 100</option>
							<option value="6">&gt; 101</option>
						</select>
					</td>
				</tr>
				<tr>
					<td><label class="prop">Ruolo:</label></td>
					<td>
						<select name="ruolo">
							<option value="">--seleziona un ruolo--</option>
							<option value="POR">Portiere</option>
							<option value="DIF">Difenzore</option>
							<option value="CEN">centrocampista</option>
							<option value="ATT">attaccante</option>
						</select>
					</td>
				</tr>
				<tr>
					<td><label class="prop">SquadraReale:</label></td>
					<td>
						<select name="squadraReale">
							<option value="">--seleziona un squadra--</option>
							<logic:iterate id="squadraReale" name="listaSquadraReale">
								<option value="${squadraReale }">${squadraReale }</option>
							</logic:iterate>
						</select>
					</td>
				</tr>
				<tr>
					<td><label class="prop">FantaSquadra:</label></td>
					<td>
						<select name="idSquadra">
							<option value="0">--seleziona un squadra--</option>
							<logic:iterate id="squadra" name="listaSquadra">
								<option value="${squadra.id }">${squadra.nome }</option>
							</logic:iterate>
						</select>
					</td>
				</tr>
			</table>
			<input type="hidden" name="pagina" value="ricerca" />
			<input class="bottomS" type="submit" value="Cerca" />
			<div class="bottomD"><html:reset /></div>
		</form>
	</div>
	
	<c:import url="/footer.jsp"/>

</body>
</html>